--[[ -- -*- lua -*-
 Copyright (c) 2004 Iwata <iwata@quasiquote.org>

 Permission to use, copy, modify, and distribute this software for any
 purpose with or without fee is hereby granted, provided that the above
 copyright notice and this permission notice appear in all copies.

 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--]]

local prefix = "@SJ3VARDIR@"

sj3proxy.set_server {
   -- user: String
   --  run as user name
   user = "@SJ3OWNER@",

   -- chroot: Boolean
   --  sj3serv is chrooted or not
   chroot = true,

   -- chroot_dir: String
   --  chrooted path
   chroot_dir = prefix .. "/run",

   -- socket_file: String
   --  unix domain socket file name
   --  Note: this file is opened after chroot
   socket_file = "/sj3serv.socket",

   -- address_famiy: String ("unspec" or "inet4" or "inet6")
   --  listening address family
   address_famiy = "unspec",

   -- listen: String
   --  listening address
   listen = "localhost",

   -- port: String
   --  listening service name
   port = "3086",
}

